package com.qing.thread.staticproxy;

/**
 * 婚庆公司
 */
public class WeddingCompany implements Marry {
    private Marry target;

    public WeddingCompany(Marry target) {
        this.target = target;
    }

    @Override
    public void HappyMarry() {
        after();
        this.target.HappyMarry();
        before();
    }

    public void after() {
        System.out.println("婚礼之前，布置现场！");
    }

    public void before() {
        System.out.println("婚礼之后，收尾款！");
    }
}
